package com.alibaba.dubbo.demo.provider;

import java.util.List;

import com.alibaba.dubbo.demo.SysRoleInterface;
import com.alibaba.dubbo.demo.bean.PageBean;
import com.alibaba.dubbo.demo.bean.SysRole;
import com.alibaba.dubbo.demo.provider.dao.impl.SysRoleDaoImpl;

public class SysRoleServiceImpl implements SysRoleInterface {

	private SysRoleDaoImpl sysRoleDao;
	
	public SysRoleDaoImpl getSysRoleDao() {
		return sysRoleDao;
	}

	public void setSysRoleDao(SysRoleDaoImpl sysRoleDao) {
		this.sysRoleDao = sysRoleDao;
	}

	@Override
	public PageBean queryAllSysRole(PageBean pageBean, String rolecode, String rolename) {
		// TODO Auto-generated method stub
		return sysRoleDao.queryAllSysRole(pageBean, rolecode, rolename);
	}

	@Override
	public List<SysRole> queryAllSysRoleList(String rolecode, String rolename) {
		// TODO Auto-generated method stub
		return sysRoleDao.queryAllSysRoleList(rolecode, rolename);
	}

	@Override
	public SysRole queryOneSysRole(String rolecode) {
		// TODO Auto-generated method stub
		return sysRoleDao.queryOneSysRole(rolecode);
	}

	@Override
	public SysRole queryOneSysRole(int roleid) {
		// TODO Auto-generated method stub
		return sysRoleDao.queryOneSysRole(roleid);
	}

	@Override
	public boolean saveSysRole(SysRole sysRole) {
		// TODO Auto-generated method stub
		return sysRoleDao.saveSysRole(sysRole);
	}

	@Override
	public boolean updateSysRole(SysRole sysRole) {
		// TODO Auto-generated method stub
		return sysRoleDao.updateSysRole(sysRole);
	}

	@Override
	public boolean deleteSysRole(int roleid) {
		// TODO Auto-generated method stub
		return sysRoleDao.deleteSysRole(roleid);
	}

	@Override
	public boolean updateSysRoleFlag(int roleid, int valid) {
		// TODO Auto-generated method stub
		return sysRoleDao.updateSysRoleFlag(roleid, valid);
	}

}
